const { ALLOW_APP } = require('../config/app')
const util = require('./common')
exports.checkApp = (req,res,next) => { 
    console.log(req.headers)
    if (!ALLOW_APP.includes(req.headers.fapp)) {
        res.json(util.getReturnData(500, "来源不正确"))
    } else { 
        next()
    }
}

exports.checkUser = (req, res, next) => {
    console.log("检测用户登录情况")
    next()
}